package com.zzdx.deployment.system.domain;

import com.zzdx.deployment.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 产品资源表 sys_product_resource
 * 
 * @author ruoyi
 * @date 2018-12-25
 */
public class ProductResource extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 产品资源ID */
	private Integer id;
	/** 产品版本ID */
	private Integer productVersionId;
	/** 版本号 */
	private String version;
	/** 资源类型：env,program,script */
	private String resourceType;
	/** 资源名称 */
	private String resourceName;
	/** 适用系统：windows,linux */
	private String systemType;
	/** 是否增量:0全量，1增量 */
	private String isIncrement;
	/** 资源存储的相对路径 */
	private String resourceRelativePath;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;

	private ProductVersion productVersion;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setProductVersionId(Integer productVersionId) 
	{
		this.productVersionId = productVersionId;
	}

	public Integer getProductVersionId() 
	{
		return productVersionId;
	}
	public void setVersion(String version) 
	{
		this.version = version;
	}

	public String getVersion() 
	{
		return version;
	}
	public void setResourceType(String resourceType) 
	{
		this.resourceType = resourceType;
	}

	public String getResourceType() 
	{
		return resourceType;
	}
	public void setResourceName(String resourceName) 
	{
		this.resourceName = resourceName;
	}

	public String getResourceName() 
	{
		return resourceName;
	}
	public void setSystemType(String systemType) 
	{
		this.systemType = systemType;
	}

	public String getSystemType() 
	{
		return systemType;
	}
	public void setIsIncrement(String isIncrement) 
	{
		this.isIncrement = isIncrement;
	}

	public String getIsIncrement() 
	{
		return isIncrement;
	}
	public void setResourceRelativePath(String resourceRelativePath) 
	{
		this.resourceRelativePath = resourceRelativePath;
	}

	public String getResourceRelativePath() 
	{
		return resourceRelativePath;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}

	public ProductVersion getProductVersion() {
		return productVersion;
	}

	public void setProductVersion(ProductVersion productVersion) {
		this.productVersion = productVersion;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productVersionId", getProductVersionId())
            .append("version", getVersion())
            .append("resourceType", getResourceType())
            .append("resourceName", getResourceName())
            .append("systemType", getSystemType())
            .append("isIncrement", getIsIncrement())
            .append("resourceRelativePath", getResourceRelativePath())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
